import request from '@/utils/request'

export function login( data ) {
    return request( {
        url: '/login',
        method: 'post',
        data
    } )
}

export function userinfo() {
    return request( {
        url: '/user/userinfo',
        method: 'get'
    } )
}

export function logout() {
    return request( {
        url: '/logout',
        method: 'post'
    } )
}
